#include"stdio.h"
#include"math.h"
/******婚姻状况管理系统入门****/
/******输入数据，然后存盘******/
/******数据写入memberInfor.txt***/
typedef struct date
{
    int day;
    int month;
    int year;
}DATE;

typedef struct marry
{
    DATE marryDay;
    char spousename[30];
    int child;
}MARRY;

typedef struct married
{
    DATE divorceDay;
    int child;
}MARRIED;

typedef union maritalstate
{
    long single;
    MARRIED married;
    MARRY marry;
}MARITALSTATE;

typedef struct person
{
    char name[30];
    char sex;
    int year;
    MARITALSTATE marital;
    int flag;
}PERSON;
/*****结构体共用体嵌套使用******/

int main()
{
    PERSON infor[1000];
    int i;
    while(scanf("%s %c %d"));
}


